package com.auxgroup.hr.front.site.vo;

import com.auxgroup.hr.front.commons.vo.AuthorityFiledVO;
import com.auxgroup.hr.front.dao.domain.PsCAppStepInst;
import com.auxgroup.hr.front.dao.domain.PsCModAttT;

import java.util.List;
import java.util.Set;

/**
 * @author lvliuhao
 * @version 创建时间：2018年6月8日 下午5:21:22
 * 流程查询返回类父类
 */
public class BaseProcessRespVO {

    private String cApprovalSw;//是否显示同意按钮

    private String cDenySw;//是否显示不同意按钮

    private String cPushbackAllSw;//是否显示退回按钮

    private String cAddSw;//是否显示加签按钮

    private String cIsChuanyue;//是否传阅

    private String cStepType;//步骤类型

    public boolean hasFieldEdit() {
        return "Y".equalsIgnoreCase(cApprovalSw);
    }


    private String cWfType;//流程类型
    private String cWfStatus;//	流程状态	CHAR
    private String cTransactionNbr;//流程编号
    private List<PsCModAttT> wfFiles;//流程文件
    private Set<AuthorityFiledVO> authFileds;//权限字段列表


    public String getcStepType() {
        return cStepType;
    }

    public void setcStepType(String cStepType) {
        this.cStepType = cStepType;
    }

    public String getcIsChuanyue() {
        return cIsChuanyue;
    }

    public void setcIsChuanyue(String cIsChuanyue) {
        this.cIsChuanyue = cIsChuanyue;
    }

    public String getcWfType() {
        return cWfType;
    }

    public void setcWfType(String cWfType) {
        this.cWfType = cWfType;
    }

    public String getcWfStatus() {
        return cWfStatus;
    }

    public void setcWfStatus(String cWfStatus) {
        this.cWfStatus = cWfStatus;
    }

    public String getcTransactionNbr() {
        return cTransactionNbr;
    }

    public void setcTransactionNbr(String cTransactionNbr) {
        this.cTransactionNbr = cTransactionNbr;
    }


    public Set<AuthorityFiledVO> getAuthFileds() {
        return authFileds;
    }

    public void setAuthFileds(Set<AuthorityFiledVO> authFileds) {
        this.authFileds = authFileds;
    }

    public List<PsCModAttT> getWfFiles() {
        return wfFiles;
    }

    public void setWfFiles(List<PsCModAttT> wfFiles) {
        this.wfFiles = wfFiles;
    }

    public void fillStepInfo(PsCAppStepInst step) {
        if (step != null) {
            setcApprovalSw(step.getcApprovalSw());
            setcDenySw(step.getcDenySw());
            setcPushbackAllSw(step.getcPushbackAllSw());
            setcAddSw(step.getcAddSw());
            setcIsChuanyue(step.getcIsChuanyue());
            setcStepType(step.getcStepType());
        }
    }

    public String getcApprovalSw() {
        return cApprovalSw;
    }

    public void setcApprovalSw(String cApprovalSw) {
        this.cApprovalSw = cApprovalSw;
    }

    public String getcDenySw() {
        return cDenySw;
    }

    public void setcDenySw(String cDenySw) {
        this.cDenySw = cDenySw;
    }

    public String getcPushbackAllSw() {
        return cPushbackAllSw;
    }

    public void setcPushbackAllSw(String cPushbackAllSw) {
        this.cPushbackAllSw = cPushbackAllSw;
    }

    public String getcAddSw() {
        return cAddSw;
    }

    public void setcAddSw(String cAddSw) {
        this.cAddSw = cAddSw;
    }
}
 